package wsz;

import java.util.List;

/**
 * @author wsz
 * @date 2021/10/7 11:13
 **/
public interface IUserDao {

    //查询所有用户
    List<User> findAll() throws Exception;

    //根据条件进行用户查询
    List<User> findByCondition(User user) throws Exception;

    int insert(User user);

    int update(User user);

    int deleteByUser(User user);

    int deleteById(int id);

    User findById(int id);
}
